<?

	print "<ul class=\"list\">";
	while($c = mysql_fetch_assoc($result)) {
		$gid = $c['gridimage_id'];
		if (!searchbreak($c,"<ul class=\"list\">",'</ul>')) {
			continue; //skip this image!
		}
		print "<li>";
		print "<a href=\"http://www.geograph.org.uk/gridref/{$c['grid_reference']}\"><tt>{$c['grid_reference']}</tt></a> ";
		print "<b><a href=\"http://www.geograph.org.uk/photo/$gid\">".hec('title')."</a></b>";
		print "<small> by <a href=\"".linktoself(array('bi_id'=>$c['user_id'],'delete'=>'page'))."\">".hec('realname')."</a></small>";
		print "</li>";
	}
	searchbreak($c,'','</ul>'); 
	
	